Workflow.openTaskAndGotoForm

Terminates execution of the current form, opens an interactive task and starts the Ebase form associated with the task. Any declared workflow in parameters for the new form are passed into the new form from the workflow job. This method can only be used with interactive tasks associated with Ebase forms (Activity type: Ebase Form Activity). Typically, this method is used by a task list application to start an interactive task when selected by the user.

The interactive task identified by taskId must be in state Waiting, and will be transitioned by this method call to state Active. The task must already be assigned to the user. If the task has previously been opened and therefore has a state of Active, method #reOpenTaskAndGotoForm(String) should be used instead. If the task has state Unassigned, it must first be assigned to the user using method com.ebasetech.xi.api.workflow.WorkflowManagement#assign(String, String, boolean, String, String).

The taskId is passed into the form associated with the task and can be obtained using system variable $WF_TASK_ID.

Parameters

java.lang.String  taskId,  java.lang.String  reason,